
import java.rmi.Remote;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.rmi.RemoteException;

/**
 *
 * @author olivierm
 */
public interface Publisher extends Remote{
       public void subscribe(Subscriber obs) throws RemoteException;
       public void unsubscribe(Subscriber obs) throws RemoteException;
       public int getNbrSubscribes() throws RemoteException;
       public void notifyAllSubscibers() throws RemoteException;
}
